﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;

namespace FBNotifier
{
    class HTTPReader
    {
        static public string ReadURL(string url)
        {
            string result = "";

            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);

            WebResponse response = request.GetResponse();

            StreamReader sreader = new StreamReader(response.GetResponseStream());
            result = sreader.ReadToEnd();

            response.Close();

            return result;
        }
    }
}
